
#include "app_client/Input.h"
#include "app_client/Application.h"
namespace KEngine
{
	int Input::onMsg(UINT message, WPARAM wParam, LPARAM lParam)
	{
		/*
		switch (message)
		{
			case WM_KEYDOWN:
			{
				//todo : key input syste  in...
				switch (wParam)
				{
				case VK_ESCAPE:
					PostQuitMessage(0);
					break;
				}
			}
			break;
			case WM_KEYUP:
			{
				//todo :key input syste  in...
			}
			break;

			case WM_SYSKEYDOWN:
			{

			}
			break;
			
			case WM_SYSKEYUP:
			{

			}
			break;
			
			case WM_MOUSEMOVE:
			{
				int x_pos = LOWORD(lParam);
				int y_pos = HIWORD(lParam);

				// move the camera
				static int x = 0;
				static int y = 0;
				if (wParam == MK_RBUTTON)
				{
					int delta_x = x - x_pos;
					int delta_y = y - y_pos;

				}
				x = x_pos;
				y = y_pos;

				//todo mouse input
				return 0;
			}
			break;
			
			case WM_LBUTTONDOWN:
			{
				//todo mouse input
			}
			break;
			
			case WM_LBUTTONUP:
			{
				//todo mouse input
			}
			break;
			
			case WM_RBUTTONDOWN:
			{
				//todo mouse input
			}
			break;
		
			case WM_RBUTTONUP:
			{
				//todo mouse input
			}
			break;
		
			case WM_MBUTTONDOWN:
			{
				//todo mouse input
			}
			break;
			
			case WM_MBUTTONUP:
			{
				//todo mouse input
			}
			break;
			
			case WM_MOUSEWHEEL:
			{
				//todo mouse input
			}
			break;

			case WM_CHAR:
			switch (wParam)
			{
			case '`':
				if(_app)
					_app->consoleToggleShow();
				return 1;
				break;
			}
			break;

		default:
			return 0;
		}
		*/
		return 0;
	}

};
